import request from '@/utils/request'

// 查询wbs清单列表
export function listBaseBaWbs(query) {
  return request({
    url: '/jl_base/baseBaWbs/list',
    method: 'get',
    params: query
  })
}

// 查询wbs清单详细
export function getBaseBaWbs(wbsId) {
  return request({
    url: '/jl_base/baseBaWbs/' + wbsId,
    method: 'get'
  })
}

// 新增wbs清单
export function addBaseBaWbs(data) {
  return request({
    url: '/jl_base/baseBaWbs',
    method: 'post',
    data: data
  })
}

// 修改wbs清单
export function updateBaseBaWbs(data) {
  return request({
    url: '/jl_base/baseBaWbs',
    method: 'put',
    data: data
  })
}

// 删除wbs清单
export function delBaseBaWbs(wbsId) {
  return request({
    url: '/jl_base/baseBaWbs/' + wbsId,
    method: 'delete'
  })
}
